﻿using DAL;
using Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class ProjectBLL
    {
        private ProjectDAL dal = new ProjectDAL();

        /// <summary>
        /// 增加一行项目
        /// </summary>
        /// <param name="project">传入项目数据</param>
        /// <returns></returns>
        public bool AddProject(ProjectInfo project,UserInfo user)
        {
            return dal.AddProject(project, user);
        }

        /// <summary>
        /// 执行项目查询，返回ds
        /// </summary>
        /// <returns></returns>
        public DataSet GetProjectList(int i)
        {
            return dal.GetProjectList(i);
        }

        /// <summary>
        /// 执行项目查询，返回ds
        /// </summary>
        /// <param name="project">传入项目数据</param>
        /// <returns></returns>
        public DataSet GetProjectList(ProjectInfo project)
        {
            return dal.GetProjectList(project);
        }
    }
}
